<script setup lang="ts">
import type { TemplateMap } from '@/types/template'

// 定义props接收
defineProps<{
  map: TemplateMap[]
}>()
</script>

<template>
  <view class="map-panel">
    <view class="map-item" v-for="item in map" :key="item.title.id">
      <view class="province-name">{{ item.title.name }}</view>
      <HxTemplate :list="item.list" />
    </view>
  </view>
</template>

<style lang="scss">
@import './styles/TemplateMapPanel.scss';
</style>
